<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<css file="__STATIC__/hdjs/hdjs.css"/>
	<js file="__STATIC__/hdjs/hdjs.min.js"/>
</head>
<body>
	
	<div class="hd-menu-list">
	    <ul>
	        <li class="active"><a href="#">栏目列表</a></li>
	        <li><a href="{|U:'category/add'}">添加栏目</a></li>
	        <li><a href="{|U:'category/cache'}">更新栏目缓存</a></li>
	    </ul>
	</div>
	<form action="{|U:'category/sort'}" method="post">
		<table class="hd-table hd-table-list">
		    <thead>
		    <tr>
		     	<td>排序</td>
		        <td>CID</td>
		        <td>栏目名</td>
		        <td>显示</td>
		        <td>列表静态</td>
		        <td>文章静态</td>
		        <td>操作</td>
		    </tr>
		    </thead>
		    <tbody>
		    <foreach from="$category" key="$k" value="$v">
			    <tr>
			    	<td><input type="text" value="{$v['sort']}" name="sort[]" class="hd-w30"><input type="hidden" name="cid[]" value="{$v.cid}"></td>
			        <td>{$v['cid']}</td>
			        <td>
			           	{$v['_name']}
			        </td>
			        <!-- <input type="submit" value="{$v['cname']}"> -->
			        <td>{$v['is_show']}</td>
			        <td>{$v['is_listhtml']}</td>
			        <td>{$v['is_archtml']}</td>
			        <td class="hd-w100">
			            <a href="{|U:'category/edit',array('cid'=>$v['cid'],'pid'=>$v['pid'])}">修改</a> |
			            <a href="{|U:'category/add',array('cid'=>$v['cid'])}">添加</a>
			        </td>
			    </tr>
			</foreach>
		    </tbody>
		</table>
		<input type="submit" value="点击排序">
	</form>

</body>
</html>